package com.huage.courseplatform.application.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huage.courseplatform.application.model.entity.Course;
import com.huage.courseplatform.application.model.entity.Student;
import com.huage.courseplatform.application.model.vo.CoursePeriodVO;
import com.huage.courseplatform.framework.config.MybatisRedisCache;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CourseMapper extends BaseMapper<Course> {

    CoursePeriodVO getCourseAndPeriodById(String id);

    void addPeriodCourse(@Param("periodId") String periodId ,@Param("courseId") String courseId);

    void delPeriodCourseByCourseId(String courseId);

    List<String> getCourseIdListByPeriodId(String periodId);

}
